package ace.module.upms.core.impl.manager;

import ace.cmp.data.spring.data.jdbc.querydsl.rsql.core.manager.DtoManager;
import ace.module.upms.core.impl.dao.entity.UpmsOrganization;
import ace.module.upms.api.model.dto.UpmsOrganizationDto;
import ace.module.upms.core.impl.dao.entity.UpmsRole;
import java.util.List;

/**
* 组织 spring data jdbc querydsl rsql manager.
*
* @author Caspar
*/
public interface UpmsOrganizationManager extends DtoManager<UpmsOrganization, Long, UpmsOrganizationDto> {

  List<UpmsOrganization> getByUpmsAppIdAndIdInAndDeleteFlagIsFalse(Long upmsAppId, List<Long> orgIds);

  boolean anyMatch(List<UpmsOrganization> upmsOrganizations, Long upmsOrgId);
}